package com.ruoyi.bizsys.service.impl;

import java.util.List;
import java.util.Arrays;
                                                                            import org.springframework.stereotype.Service;
    import com.ruoyi.bizsys.mapper.RepaymentOrderQzMapper;
import com.ruoyi.bizsys.domain.RepaymentOrderQz;
import com.ruoyi.bizsys.service.IRepaymentOrderQzService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;


/**
 * 定时任务轮询的3小时18次Service业务层处理
 *
 * @author wqg
 * @date 2022-06-09
 */
@Service
public class RepaymentOrderQzServiceImpl extends ServiceImpl<RepaymentOrderQzMapper,RepaymentOrderQz> implements IRepaymentOrderQzService {

    /**
     * 查询定时任务轮询的3小时18次
     *
     * @param id 定时任务轮询的3小时18次ID
     * @return 定时任务轮询的3小时18次
     */
    @Override
    public RepaymentOrderQz selectRepaymentOrderQzById(Long id) {
        return this.getById(id);
    }

    /**
     * 查询定时任务轮询的3小时18次列表
     *
     * @param repaymentOrderQz 定时任务轮询的3小时18次
     * @return 定时任务轮询的3小时18次
     */
    @Override
    public List<RepaymentOrderQz> selectRepaymentOrderQzList(RepaymentOrderQz repaymentOrderQz) {
        return this.list(new QueryWrapper<>(repaymentOrderQz).last("order by id desc"));
    }

    /**
     * 新增定时任务轮询的3小时18次
     *
     * @param repaymentOrderQz 定时任务轮询的3小时18次
     * @return 结果
     */
            @Override
    public int insertRepaymentOrderQz(RepaymentOrderQz repaymentOrderQz) {
                                                                                                                                        return baseMapper.insert(repaymentOrderQz);
    }

    /**
     * 修改定时任务轮询的3小时18次
     *
     * @param repaymentOrderQz 定时任务轮询的3小时18次
     * @return 结果
     */
            @Override
    public int updateRepaymentOrderQz(RepaymentOrderQz repaymentOrderQz) {
                                                                                                                                        return baseMapper.updateById(repaymentOrderQz);
    }

    /**
     * 批量删除定时任务轮询的3小时18次
     *
     * @param ids 需要删除的定时任务轮询的3小时18次ID
     * @return 结果
     */
            @Override
    public int deleteRepaymentOrderQzByIds(Long[] ids) {
        return baseMapper.deleteBatchIds(Arrays.asList(ids));
    }

    /**
     * 删除定时任务轮询的3小时18次信息
     *
     * @param id 定时任务轮询的3小时18次ID
     * @return 结果
     */
    @Override
    public int deleteRepaymentOrderQzById(Long id) {
        return baseMapper.deleteById(id);
    }

}
